@import "./vars";

#wechat-menu {
    td {
        .form-item {
            &.inline {
                .content {
                    width: auto;
                }
            }
        }
    }

    .form-item {
        + .form-item {
            margin-top: 20px;
        }

        .content {
            width: 100%;
            display: block;
            position: relative;
        }

        .error-text {
            position: absolute;
            color: $danger-color;
            font-size: 14px;
        }

        &.inline {
            .content {
                display: inline-block;
                vertical-align: middle;
                width: 350px;
            }
        }

        &.has-error {
            .input {
                border-color: $danger-color;
            }

            .radio-group {
                border-color: $danger-color;
            }
        }

        &.error-inside {
            .error-text {
                right: 12px;
                top: 8px;
                pointer-events: none;
                background: #fff;
            }
        }

        .label {
            display: inline-block;
            height: 40px;
            line-height: 40px;
            margin-right: 10px;
            vertical-align: middle;
        }

        .radio-group {
            padding: 0 5px;
            line-height: 30px;
            min-height: 30px;
            border: 1px solid transparent;
            border-radius: 3px;
        }

        &.radio-item {
            .content {
                width: auto;
            }
        }
    }
}
